]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Hide the running-apps area when empty
authorOwen W. Taylor <otaylor@fishsoup.net>
Sat, 4 Jul 2009 13:14:44 +0000 (14:14 +0100)
committerOwen W. Taylor <otaylor@fishsoup.net>
Sat, 4 Jul 2009 13:19:25 +0000 (14:19 +0100)
It looks funny to have the "more running apps area" there as a gap
when empty and dragging to it is an unintuitive way to remove stuff
from the favorites list, in any case, so just hide the area when
empty.

http://bugzilla.gnome.org/show_bug.cgi?id=587720

js/ui/appDisplay.js

index e7f15f2e2c9a121165cfbdf27a8b7f254c6e8595..41dfe7ae57456f7793eeac13cb8fc024bb8145da 100644 (file)
@@ -663,11 +663,11 @@ AppWell.prototype = {
         });
         this._favoritesArea.redisplay(favorites);
         this._runningArea.redisplay(running);
-        // If it's empty, we need to provide a minimum drop target
+        // If it's empty, we hide it so the top border doesn't show up
         if (running.length == 0)
-          this._runningArea.actor.set_size(this._width, 50);
+          this._runningBox.hide();
         else
-          this._runningArea.actor.set_size(-1, -1);
+          this._runningBox.show();
     }
 };